package com.redis.demo.core.dao;

import java.util.List;

import com.redis.demo.core.entity.Member;

/**
 * 会员管理 dao
 * 
 * @author sean
 * 
 */
public interface IMemberDao extends IBaseDao {

	/**
	 * 保存会员
	 * 
	 * @param member
	 * @return
	 */
	Member saveMember(Member member);

	/**
	 * 通过 id 查询会员
	 * 
	 * @param id
	 * @return
	 */
	Member getMemberById(String id);

	/**
	 * 查询所有会员
	 * 
	 * @return
	 */
	List<Member> getAllMembers();
	
	/**
	 * 根据id删除会员
	 * 
	 * @param id
	 * @return
	 */
	boolean deleteMemberById(String id);
}
